package com.sdy.supermarket.biz.mapper;

import com.sdy.supermarket.biz.model.GsNavigation;
import com.sdy.mvc.mapper.BaseMapper;
import com.sdy.supermarket.biz.vo.GsNavigationVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zzq
 * @since 2019-07-24
 */
public interface GsNavigationMapper extends BaseMapper<GsNavigation> {
    /**
     * 获取所有数据
     *
     * @return
     */
    @Select("select * from gs_navigation")
    List<GsNavigationVo> getAll();

    /**
     * 批量更新方法
     *
     * @param gsNavigationList
     * @return
     */
    int batchUpdate(List<GsNavigation> gsNavigationList);

}
